﻿<?
#error_reporting(0);
#include "domain_lookup.php";
include("../config/header.php");
?>
<script type='text/javascript'>
	document.title = '在线Whois查询 —— 在线工具';
</script>
<div class="container">
	<div class="panel panel-primary">
		<div class="panel-heading"><h3 class="panel-title">Whois查询</h3></div>
	</div>
	<div class="form-group">
<!--		<form action="" class="form-horizontal" role="form">  -->
			<div class="form-group">
				<label class="col-sm-2 control-label" for="domain">域名/IP：</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" name="domain" id="domain" value="<?php echo $domain;?>" placeholder="请输入域名">
				</div>
			</div>
			<div class="form-group">

				<div class="col-sm-offset-2 col-sm-10">
<br>
					<button type="submit" class="btn btn-lg btn-primary btn-block" onclick="search(document.getElementById('domain').value)">查询</button>
				</div>
			</div>
		<!-- </form>-->

<script>
function search(value)
{
//alert(value);

self.location.href="http://who.is/whois/"+value;
}
</script>
<?php
include("../config/footer.php");
?>
